<!DOCTYPE html>
<html>
<head>
	<title>jquery的选择器、find函数、each函数</title>
	<script src="../ExternalLibrary/jquery.js"></script><!-- 引入jquery库 -->
</head>
<body>
	<div id="jqueryId">
		<div>
			<div>
				<a href="">1</a>
				<a href="">2</a>
				<a href="">3</a>
			</div>
		</div>
	</div>
</body>
	<script type="text/javascript">
		$("#jqueryId div div").find("a").each(
			function(){
				alert($(this).text());
			}
		)

		//方法等效

		$("#jqueryId div div a").each(
			function(){
				alert($(this).text())
			}
		)
	</script>
</html>